package dp.gr03.payroll.classificationTransaction;

import dp.gr03.payroll.classifications.HourlyClassification;
import dp.gr03.payroll.payrollDomain.PaymentClassification;
import dp.gr03.payroll.payrollDomain.PaymentSchedule;
import dp.gr03.payroll.schedules.WeeklySchedule;

public class ChangeHourlyTransaction extends ChangeClassificationTransaction
{

    private double hourlyRate;

    public ChangeHourlyTransaction(int empId, double hourlyRate)
    {
        super(empId);
        this.hourlyRate = hourlyRate;
    }

    @Override
    public PaymentClassification getPaymentClassification()
    {
        return new HourlyClassification(hourlyRate);
    }

    @Override
    public PaymentSchedule getPaymentSchedule()
    {
        return new WeeklySchedule();
    }

}
